package com.ttl.ttldemo.lstener;


import com.ttl.ttldemo.config.DirectConfig;
import lombok.extern.slf4j.Slf4j;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

import java.util.Date;
@Slf4j
@Component
public class FanoutListener {
    @RabbitListener(queues = DirectConfig.TLL_DEAD_QUEUE)
    public void getMessage01(String message){
        System.out.println("TTLqueue :"+message);
        log.info("消息接收完毕，接收时间为：{}",new Date());
    }

}
